import request from '@/utils/request'

// 获取员工数据
export function employee_get_list(token, data) {
  return request({
    url: 'organization/employee/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 获取单条数据
export function employee_info(token, data) {
  return request({
    url: 'organization/employee/info',
    method: 'post',
    params: { token },
    data
  })
}

// 修改数据
export function employee_edit(token, data) {
  return request({
    url: 'organization/employee/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 删除数据
export function employee_delete(token, data) {
  return request({
    url: 'organization/employee/delete',
    method: 'post',
    params: { token },
    data
  })
}

// 添加数据
export function employee_add(token, data) {
  return request({
    url: 'organization/employee/add',
    method: 'post',
    params: { token },
    data
  })
}

// 根据id获取部门信息
export function department_get_select(token, data) {
  return request({
    url: 'organization/department/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 获取无分页员工数据
export function demployee_get_select(token, data) {
  return request({
    url: 'organization/employee/get_select',
    method: 'post',
    params: { token },
    data
  })
}

// 批量导入
export function service_batchLoad(token, data) {
  return request({
    url: 'access/service/batchLoad',
    method: 'post',
    params: { token },
    data
  })
}

// 获取设备名称
export function push_get_list(token, data) {
  return request({
    url: 'access/push/get_list',
    method: 'post',
    params: { token },
    data
  })
}

// 推送到设备
export function push_edit(token, data) {
  return request({
    url: 'access/push/edit',
    method: 'post',
    params: { token },
    data
  })
}

// 员工门禁权限修改
export function device_auth_get_select(token, data) {
  return request({
    url: 'access/device_auth/get_select',
    method: 'post',
    params: { token },
    data
  })
}

//批量删除员工 
export function service_deleteAll(token, data) {
  return request({
    url: 'access/service/deleteAll',
    method: 'post',
    params: { token },
    data
  })
} 

//批量给员工设置公司部门 
export function service_batchDepartment(token, data) {
  return request({
    url: 'access/service/batchDepartment',
    method: 'post',
    params: { token },
    data
  })
}

//批量给员工设置公司部门 
export function service_batchDevice(token, data) {
  return request({
    url: 'access/service/batchDevice',
    method: 'post',
    params: { token },
    data
  })
}